<template>
    <router-view/>
</template>

<script>

    export default ({
        name: "App",
        watch: {
            $route(to, from) {
                if (to.matched[0].name === "Home") {
                    let obj = {
                        name: to.name,
                        title: to.meta.title
                    }
                    this.$store.commit("addTabs", obj)
                }
            }
        },

    })
</script>

<style>
    html, body, #app {
        font-family: 'Helvetica Neue', 'Hiragino Sans GB', 'WenQuanYi Micro Hei', 'Microsoft Yahei', sans-serif;
        height: 100%;
        padding: 0;
        margin: 0;
        font-size: 15px;
    }
</style>
